<?php header ("Content-Type:text/xml"); ?>
<?php echo '<?xml version="1.0" encoding="UTF-8"?>'; ?>
<tours>
	<tourcontainer title="<?php echo $name; ?>">
	<options>
		<?php if($options!='') 
		{ 
			foreach($options as $row)
			{?>
			<option	value='<?php echo $row['id']; ?>' desc='<?php echo $row['name']; ?>'/>

		<?php }
		}?>
	</options>
	<description>
		<?php echo $descr; ?>
	</description>
		<yearitem value="<?php echo $year; ?>">
			<monthitem value="<?php echo $month; ?>" >
			<?php foreach($arraydays as $key=>$price):?>
				<dayitem value="<?php echo $key; ?>">
				
						
							<priceitem type="single" value="<?php echo $price['SNGL']; ?>"/>
							<priceitem type="double" value="<?php echo $price['DBL']; ?>"/>
							<priceitem type="triple" value="<?php echo $price['TRPL']; ?>"/>
							<priceitem type="child"  value="<?php echo $price['CHLD']; ?>"/>
							<priceitem type="dinner" value="<?php if(isset($price['HB'])){echo $price['HB'];} ?>"/>
						
					
				</dayitem>
				<?php  endforeach; ?>
			</monthitem>
		</yearitem>
	</tourcontainer>
</tours>